﻿using System;
using System.Web.UI;

namespace HealthCommunity
{
	public partial class QuestionList : System.Web.UI.Page
	{
		public int SelectedTabIndex
		{
			get
			{
				return CommonHelper.QueryStringInt("selectedtabindex");
			}
		}

		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void Page_PreRender(object sender, EventArgs e)
		{
			if(SelectedTabIndex >= 0)
			{
				Page.ClientScript.RegisterStartupScript(Page.GetType(), "", @"$('#questiontabs').tabs().tabs('select', " + SelectedTabIndex.ToString() + ");", true);
			}
		}
	}
}